(function($){
	$.fn.sider=function(a){
		var o={
			headBox:"#headBox",
			showClass:"open"
		}
		o=$.extend(o,a);
		var allBox=$(this);
		var headBox=$(o.headBox);
		headBox.click(function(event){
			if(!allBox.hasClass(o.showClass)){
				event.stopPropagation();
				allBox.addClass(o.showClass);
			}
			$(document).one('click',function(){
				allBox.removeClass(o.showClass);
			})
		})
	}
})(jQuery)